<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich">
<h:head>
	<title>Fiap Airport Web</title>
</h:head>
<h:body>
	<ui:include src="/cliente/menu.xhtml"/>
	<rich:panel header="Lista de Voo">
	<h:form>
		
		<div>
			<span>Número do Voo:</span>
			<h:inputText value="#{vooBean.voo.numero}" required="true" />
		</div>
		<div>
			<span>Descrição:</span>
			<h:inputText value="#{vooBean.voo.descricao}" />
		</div>
		<div>
			<span>Quantidade de Assentos classe Econômica:</span>
			<h:inputText value="#{vooBean.voo.totalAssentosEconomicos}" required="true" />
		</div>
		<div>
			<span>Quantidade de Assentos classe Executivos:</span>
			<h:inputText value="#{vooBean.voo.totalAssentosExecutivos}" required="true" />
		</div>
    	<p>
			<h:commandButton action="#{vooBean.salvarDados()}" value="Salvar" />
			<h:commandButton action="lista-voo" value="Voltar" immediate="true"/>
		</p>
	</h:form>
	</rich:panel>
</h:body>
</html>
